<?php
/**
 * represents a html <textarea>
 */
fily_XMLConverter::registerNamespace('textarea', fily_Textarea);
class fily_Textarea extends fily_Control {
	/**
         *
         */
	public function __construct() {
            parent::__construct('textarea');
            $this->setEndTagRequired(true);
	}


        protected $text;

        /**
         * set the text
         * @param string $text
         */
        public function setText($text){
           $this->text = $text;
        }

        /**
         * returns the text
         * @return string
         */
        public function getText(){
           return  $this->text ;
        }

         protected function generateHtml(){
                $html = '<' . $this->getTag() . $this->attributes->toString() . ' >'. $this->text .'</'. $this->getTag() .'>';
                return $html;
          }
          
}
?>
